﻿<%@ Page Language="C#" MasterPageFile="~/Manager/MasterPage/PageTemplate.Master" AutoEventWireup="True"
    Codebehind="Default.aspx.cs" Inherits="BingZi.UIOrder.Default"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <BingZiWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
         HeadOPTxt="商品订单列表" HeadTitleTxt="商品订单">
    <%--    <BingZiWebControls:HeadMenuButtonItem ButtonPopedom="New" ButtonUrl="Manager.aspx?CMD=New"
            ButtonUrlType="Href" ButtonVisible="True" ButtonName="商品订单" />--%>
    </BingZiWebControls:HeadMenuWebControls>
    <BingZiWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <BingZiWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="商品订单列表">
            <asp:GridView ID="GridView1" runat="server" OnSorting="GridView1_Sorting" OnRowCreated="GridView1_RowCreated" onrowdatabound="GridView1_RowDataBound" >
                <Columns>
                    <asp:TemplateField SortExpression="ID" HeaderText="订单号"> 
                        <ItemTemplate>
                        <a href="Manager.aspx?IDX=<%#Eval("ID")%>&CMD=List"><%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%></a>
                        </ItemTemplate>
                        <ItemStyle Wrap="True" />  
                        <HeaderStyle Wrap="False" />    
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="购买人" SortExpression="BuyUserID" DataField="BuyUserID" />
                    <asp:BoundField HeaderText="商品编号" SortExpression="ProductID" DataField="ProductID" />
                    <asp:BoundField HeaderText="购买数量" SortExpression="BuyCount" DataField="BuyCount" />
                    <asp:BoundField HeaderText="电话" SortExpression="Phone" DataField="Phone" />
                    <asp:BoundField HeaderText="邮寄地址" SortExpression="Address" DataField="Address" />
                     <asp:BoundField HeaderText="联系邮箱" SortExpression="Email" DataField="Email" />
                    <asp:BoundField HeaderText="购买时间" SortExpression="BuyTime" DataField="BuyTime" />
                    <asp:BoundField HeaderText="快递名" SortExpression="Express" DataField="Express" />
                    <asp:BoundField HeaderText="快递单号" SortExpression="ExpressNumber" DataField="ExpressNumber" />
                  
                    <asp:BoundField HeaderText="状态(未审核,已审核,已发货,已完成)" SortExpression="Status" DataField="Status" />
                 
                
<%--                   
                    <asp:BoundField HeaderText="电话" SortExpression="Phone" DataField="Phone" />
                   
                    <asp:BoundField HeaderText="邮寄地址" SortExpression="Address" DataField="Address" />
                    <asp:BoundField HeaderText="邮编" SortExpression="ZipCode" DataField="ZipCode" />
                  
                    <asp:BoundField HeaderText="快递名" SortExpression="Express" DataField="Express" />
                    <asp:BoundField HeaderText="快递单号" SortExpression="ExpressNumber" DataField="ExpressNumber" />
                    <asp:BoundField HeaderText="购买数量" SortExpression="BuyCount" DataField="BuyCount" />
                    <asp:BoundField HeaderText="购买人" SortExpression="BuyUserID" DataField="BuyUserID" />
                    <asp:BoundField HeaderText="购买时间" SortExpression="BuyTime" DataField="BuyTime" />
                    <asp:BoundField HeaderText="购买IP" SortExpression="BuyIP" DataField="BuyIP" />
                    <asp:BoundField HeaderText="状态(未审核,已审核,已发货,已完成)" SortExpression="Status" DataField="Status" />
                    <asp:BoundField HeaderText="最后更新时间" SortExpression="LastTime" DataField="LastTime" />
                    <asp:BoundField HeaderText="最后更新用户" SortExpression="LastUser" DataField="LastUser" />
                    <asp:BoundField HeaderText="最后更新IP" SortExpression="LastIP" DataField="LastIP" />--%>
                </Columns>
            </asp:GridView>
            <BingZiWebControls:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
            </BingZiWebControls:AspNetPager>
            <asp:Button ID="Button2" Visible="false" CssClass="button_bak" runat="server" Text="删除" OnClientClick="return deleteop();" OnClick="Button2_Click" />
        </BingZiWebControls:TabOptionItem>
        <BingZiWebControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="查询">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">

                <tr>
                    <td class="table_body">
                        状态(未审核,已审核,已发货,已完成)</td>
                    <td class="table_none">
                    <asp:DropDownList ID="Status_Input" runat="server" CssClass="text_input"></asp:DropDownList>
                </tr>
                 <tr>
                    <td class="table_body">
                        购买人</td>
                    <td class="table_none">
                        <asp:TextBox ID="BuyUserID_Input" title="请输入购买人~10:" runat="server" CssClass="text_input"></asp:TextBox>
                        </td>
                </tr>
                 <tr>
                    <td class="table_body">
                        电话</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="Phone_Input" title="请输入电话~50:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                 <tr>
                    <td class="table_body">
                        联系邮箱</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="Email_Input" title="请输入联系邮箱~100:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                 <tr>
                    <td class="table_body">
                        快递名</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="Express_Input" title="请输入快递名~50:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                 <tr>
                    <td class="table_body">
                        快递单号</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="ExpressNumber_Input" title="请输入快递单号~50:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>

                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="查询" OnClick="Button1_Click" /></td>
                </tr>
            </table>
        </BingZiWebControls:TabOptionItem>
    </BingZiWebControls:TabOptionWebControls>

<script language="javascript" type="text/javascript">
<!--

function SelectAll()
{
   var e=document.getElementsByTagName("input");
   var IsTrue;
   if(document.getElementById("CheckboxAll").value=="0")
　 {
　　 IsTrue=true;
　　 document.getElementById("CheckboxAll").value="1"
　 }
　 else
　 {
　　IsTrue=false;
　　document.getElementById("CheckboxAll").value="0"
　　}
　　
　for(var i=0;i<e.length;i++)
　{
　　if (e[i].type=="checkbox")
　　{
　　   e[i].checked=IsTrue;
　　}
　}
}
function deleteop()
{
    var checkok = false;
    var e=document.getElementsByTagName("input");
    for(var i=0;i<e.length;i++)
　  {
　     if (e[i].type=="checkbox")
　　     {
　　         if (e[i].checked==true)
　　         {
　　             checkok = true;
　　             break;　　             
　　         }
　　     }  
　  }
　  if (checkok) 
        return confirm('删除后不可恢复,确认要批量删除选中记录吗？');
    else
    {
        
        alert("请选择要删除的记录!");
        return false;
    }
}
// -->
    </script>

</asp:Content>
